Subject: Re: Where to put the {}'s?
From: [email-masked] (Dan Pop)
Date: Mon, 16 May 1994 22:19:27 GMT
Newsgroups: comp.lang.c

In <[email-masked]> [email-masked] (Bruce Simpson) writes:

>I don't know of any C compiler worth a pinch of salt that doesn't
>accept the // form of commenting.  You don't even have to enable
>C++ compatibility options to use it (hey... even MSC6 lets you use
>the double slash!)

The // form of commenting does not exist in the C language, it's only a
syntax error and any compiler that accepts it is simply broken and it's
not worth a pinch of salt :-)

Consider the following _valid_ C construct:

i = a //* comment */ 2;

If a C compiler fails to compile it properly, that compiler _is_ broken.

Dan
-- 
Dan Pop 
CERN, CN Division
Email: [email-masked]
Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland